package com.pandora.credit.service;

import com.pandora.credit.dto.request.UpgradeRequest;
import com.pandora.credit.dto.response.GetCaptchaResponse;
import com.pandora.credit.dto.response.UpgradeInfoResponse;
import com.pandora.credit.entity.AppUpgrade;

/**
 * @author developer
 */
public interface AppUpgradeService {

    /**
     * getByPvvb
     * @param platform platform
     * @param osVersion osVersion
     * @param model model
     * @param brand brand
     * @return AppUpgrade
     */
    AppUpgrade getByPvvb(String platform, String osVersion, String model, String brand);

    /**
     * getUpgradeInfo
     * @param req req
     * @return UpgradeInfoResponse
     */
    UpgradeInfoResponse getUpgradeInfo(UpgradeRequest req);

    /**
     * doGetCaptcha
     * @param accessToken accessToken
     * @return GetCaptchaResponse
     */
    GetCaptchaResponse doGetCaptcha(String accessToken);

}
